<?php

namespace addons\shopro\model;

use think\Model;
use addons\shopro\exception\Exception;

/**
 * 水票记录
 */
class UserConsumptionLogModel extends Model
{

    // 表名,不含前缀
    protected $name = 'user_consumption_log';
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;
    protected $deleteTime = false;



    // 追加属性
    protected $append = [

    ];
    public function goods(){
        return $this->hasMany(Goods::class, 'id', 'goods_id');
    }
}
